<!DOCTYPE HTML>
<html lang="zh-CN">


<head>
    <meta charset="utf-8">
    <meta name="keywords" content="标签: STM32CubeMX DAC DAC输出, STM32CubeMX 嵌入式 Linux">
    <meta name="description" content="嵌入式 STM32 物联网领域的教程及精彩内容分享">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit|ie-stand|ie-comp">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <!-- Global site tag (gtag.js) - Google Analytics -->


    <title>标签: STM32CubeMX DAC DAC输出 | Mculover666</title>
    <link rel="icon" type="image/png" href="/favicon.png">

    <link rel="stylesheet" type="text/css" href="/libs/awesome/css/all.css">
    <link rel="stylesheet" type="text/css" href="/libs/materialize/materialize.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/aos/aos.css">
    <link rel="stylesheet" type="text/css" href="/libs/animate/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/libs/lightGallery/css/lightgallery.min.css">
    <link rel="stylesheet" type="text/css" href="/css/matery.css">
    <link rel="stylesheet" type="text/css" href="/css/my.css">

    <script src="/libs/jquery/jquery.min.js"></script>

<meta name="generator" content="Hexo 5.4.0"></head>




<body>
    <header class="navbar-fixed">
    <nav id="headNav" class="bg-color nav-transparent">
        <div id="navContainer" class="nav-wrapper container">
            <div class="brand-logo">
                <a href="/" class="waves-effect waves-light">
                    
                    <img src="/medias/logo.png" class="logo-img" alt="LOGO">
                    
                    <span class="logo-span">Mculover666</span>
                </a>
            </div>
            

<a href="#" data-target="mobile-nav" class="sidenav-trigger button-collapse"><i class="fas fa-bars"></i></a>
<ul class="right nav-menu">
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/" class="waves-effect waves-light">
      
      <i class="fas fa-home" style="zoom: 0.6;"></i>
      
      <span>首页</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="" class="waves-effect waves-light">

      
      <i class="fas fa-list" style="zoom: 0.6;"></i>
      
      <span>系列教程</span>
      <i class="fas fa-chevron-down" aria-hidden="true" style="zoom: 0.6;"></i>
    </a>
    <ul class="sub-nav menus_item_child ">
      
      <li>
        <a href="/posts/578764034/">
          
          <span>STM32CubeMX</span>
        </a>
      </li>
      
    </ul>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a target="_blank" rel="noopener" href="https://blog.csdn.net/Mculover666" class="waves-effect waves-light">
      
      <i class="fas fa-bookmark" style="zoom: 0.6;"></i>
      
      <span>CSDN</span>
    </a>
    
  </li>
  
  <li class="hide-on-med-and-down nav-item">
    
    <a href="/download" class="waves-effect waves-light">
      
      <i class="fas fa-download" style="zoom: 0.6;"></i>
      
      <span>资源下载</span>
    </a>
    
  </li>
  
  <li>
    <a href="#searchModal" class="modal-trigger waves-effect waves-light">
      <i id="searchIcon" class="fas fa-search" title="搜索" style="zoom: 0.85;"></i>
    </a>
  </li>
</ul>


<div id="mobile-nav" class="side-nav sidenav">

    <div class="mobile-head bg-color">
        
        <img src="/medias/logo.png" class="logo-img circle responsive-img">
        
        <div class="logo-name">Mculover666</div>
        <div class="logo-desc">
            
            嵌入式 STM32 物联网领域的教程及精彩内容分享
            
        </div>
    </div>

    

    <ul class="menu-list mobile-menu-list">
        
        <li class="m-nav-item">
	  
		<a href="/" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-home"></i>
			
			首页
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="javascript:;">
			
				<i class="fa-fw fas fa-list"></i>
			
			系列教程
			<span class="m-icon"><i class="fas fa-chevron-right"></i></span>
		</a>
            <ul  style="background:  ;" >
              
                <li>

                  <a href="/posts/578764034/ " style="margin-left:75px">
				  
		          <span>STM32CubeMX</span>
                  </a>
                </li>
              
            </ul>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a target="_blank" rel="noopener" href="https://blog.csdn.net/Mculover666" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-bookmark"></i>
			
			CSDN
		</a>
          
        </li>
        
        <li class="m-nav-item">
	  
		<a href="/download" class="waves-effect waves-light">
			
			    <i class="fa-fw fas fa-download"></i>
			
			资源下载
		</a>
          
        </li>
        
        
        <li><div class="divider"></div></li>
        <li>
            <a href="https://github.com/blinkfox/hexo-theme-matery" class="waves-effect waves-light" target="_blank">
                <i class="fab fa-github-square fa-fw"></i>Fork Me
            </a>
        </li>
        
    </ul>
</div>


        </div>

        
            <style>
    .nav-transparent .github-corner {
        display: none !important;
    }

    .github-corner {
        position: absolute;
        z-index: 10;
        top: 0;
        right: 0;
        border: 0;
        transform: scale(1.1);
    }

    .github-corner svg {
        color: #0f9d58;
        fill: #fff;
        height: 64px;
        width: 64px;
    }

    .github-corner:hover .octo-arm {
        animation: a 0.56s ease-in-out;
    }

    .github-corner .octo-arm {
        animation: none;
    }

    @keyframes a {
        0%,
        to {
            transform: rotate(0);
        }
        20%,
        60% {
            transform: rotate(-25deg);
        }
        40%,
        80% {
            transform: rotate(10deg);
        }
    }
</style>

<a href="https://github.com/blinkfox/hexo-theme-matery" class="github-corner tooltipped hide-on-med-and-down" target="_blank"
   data-tooltip="Fork Me" data-position="left" data-delay="50">
    <svg viewBox="0 0 250 250" aria-hidden="true">
        <path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
        <path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
              fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
        <path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
              fill="currentColor" class="octo-body"></path>
    </svg>
</a>
        
    </nav>

</header>

    <div class="bg-cover pd-header about-cover">
    <div class="container">
    <div class="row">
    <div class="col s10 offset-s1 m8 offset-m2 l8 offset-l2">
        <div class="brand">
            <div class="title center-align">
                
                嵌入式软硬件
                
            </div>

            <div class="description center-align">
                
                <span id="subtitle"></span>
                <script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11"></script>
                <script>
                    var typed = new Typed("#subtitle", {
                        strings: [ 
                            
                                "ARM | STM32 | FPGA",
                            
                                "RTOS | Liunx | IoT",
                            
                        ],
                        startDelay: 300,
                        typeSpeed: 100,
                        loop: true,
                        backSpeed: 50,
                        showCursor: true
                    });
                </script>
                
            </div>
        </div>
    </div>
</div>


<script>
    // 每天切换 banner 图.  Switch banner image every day.
    var bannerUrl = "/medias/banner/" + new Date().getDay() + '.jpg';
    $('.bg-cover').css('background-image', 'url(' + bannerUrl + ')');
</script>


    </div>
</div>

<main class="content">

    

<div id="tags" class="container chip-container">
    <div class="card">
        <div class="card-content">
            <div class="tag-title center-align">
                <i class="fas fa-tags"></i>&nbsp;&nbsp;文章标签
            </div>
            <div class="tag-chips">
                
                
                <a href="/tags/%E5%B5%8C%E5%85%A5%E5%BC%8F%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE%E7%B2%BE%E9%80%89%E4%B8%93%E6%A0%8F/" title="嵌入式开源项目精选专栏: 10">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="嵌入式开源项目精选专栏" style="background-color: #F9EBEA;">嵌入式开源项目精选专栏
                        <span class="tag-length">10</span>
                    </span>
                </a>
                
                
                <a href="/tags/%E5%B5%8C%E5%85%A5%E5%BC%8F%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE/" title="嵌入式开源项目: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="嵌入式开源项目" style="background-color: #F5EEF8;">嵌入式开源项目
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/RTOS%E5%86%85%E5%8A%9F%E4%BF%AE%E7%82%BC%E8%AE%B0/" title="RTOS内功修炼记: 10">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="RTOS内功修炼记" style="background-color: #D5F5E3;">RTOS内功修炼记
                        <span class="tag-length">10</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-TJA1050/" title="STM32CubeMX TJA1050: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX TJA1050" style="background-color: #E8F8F5;">STM32CubeMX TJA1050
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-SP3485/" title="STM32CubeMX SP3485: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX SP3485" style="background-color: #FEF9E7;">STM32CubeMX SP3485
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-HC-SR04/" title="STM32CubeMX HC-SR04: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX HC-SR04" style="background-color: #F8F9F9;">STM32CubeMX HC-SR04
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-RTC/" title="STM32CubeMX RTC: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX RTC" style="background-color: #82E0AA;">STM32CubeMX RTC
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-LTDC/" title="STM32CubeMX LTDC: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX LTDC" style="background-color: #D7BDE2;">STM32CubeMX LTDC
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-DMA2D/" title="STM32CubeMX DMA2D: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX DMA2D" style="background-color: #A3E4D7;">STM32CubeMX DMA2D
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX/" title="STM32CubeMX: 17">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX" style="background-color: #85C1E9;">STM32CubeMX
                        <span class="tag-length">17</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-%E6%B0%94%E4%BD%93%E4%BC%A0%E6%84%9F%E5%99%A8MQ-2/" title="STM32CubeMX 气体传感器MQ-2: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX 气体传感器MQ-2" style="background-color: #F8C471;">STM32CubeMX 气体传感器MQ-2
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-EEPROM/" title="STM32CubeMX EEPROM: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX EEPROM" style="background-color: #F9E79F;">STM32CubeMX EEPROM
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-BH1750/" title="STM32CubeMX BH1750: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX BH1750" style="background-color: #FEF9E7;">STM32CubeMX BH1750
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-%E6%B8%A9%E6%B9%BF%E5%BA%A6%E4%BC%A0%E6%84%9F%E5%99%A8-SHT30/" title="STM32CubeMX 温湿度传感器 SHT30: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX 温湿度传感器 SHT30" style="background-color: #D5F5E3;">STM32CubeMX 温湿度传感器 SHT30
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-%E6%B8%A9%E6%B9%BF%E5%BA%A6%E4%BC%A0%E6%84%9F%E5%99%A8-SHT30-CRC%E6%A0%A1%E9%AA%8C/" title="STM32CubeMX 温湿度传感器 SHT30 CRC校验: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX 温湿度传感器 SHT30 CRC校验" style="background-color: #FFF;">STM32CubeMX 温湿度传感器 SHT30 CRC校验
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-TFT-LCD-SPI%E6%80%BB%E7%BA%BF/" title="STM32CubeMX TFT-LCD SPI总线: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX TFT-LCD SPI总线" style="background-color: #82E0AA;">STM32CubeMX TFT-LCD SPI总线
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-SPI-Flash-QSPI%E6%8E%A5%E5%8F%A3/" title="STM32CubeMX SPI Flash QSPI接口: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX SPI Flash QSPI接口" style="background-color: #D5F5E3;">STM32CubeMX SPI Flash QSPI接口
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-SD-Card-SDMMC%E6%8E%A5%E5%8F%A3/" title="STM32CubeMX SD Card SDMMC接口: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX SD Card SDMMC接口" style="background-color: #F5EEF8;">STM32CubeMX SD Card SDMMC接口
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-DAC-DAC%E8%BE%93%E5%87%BA/" title="STM32CubeMX DAC DAC输出: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-active "
                            data-tagname="STM32CubeMX DAC DAC输出" style="background-color: #D5F5E3;">STM32CubeMX DAC DAC输出
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-%E6%B8%A9%E6%B9%BF%E5%BA%A6%E4%BC%A0%E6%84%9F%E5%99%A8-HTS221/" title="STM32CubeMX 温湿度传感器 HTS221: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX 温湿度传感器 HTS221" style="background-color: #F8F9F9;">STM32CubeMX 温湿度传感器 HTS221
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-Systick/" title="STM32CubeMX Systick: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX Systick" style="background-color: #E8F8F5;">STM32CubeMX Systick
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-Flash/" title="STM32CubeMX Flash: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX Flash" style="background-color: #FEF9E7;">STM32CubeMX Flash
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-SGP30/" title="STM32CubeMX SGP30: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX SGP30" style="background-color: #85C1E9;">STM32CubeMX SGP30
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-W25Q64/" title="STM32CubeMX W25Q64: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX W25Q64" style="background-color: #F8C471;">STM32CubeMX W25Q64
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-SDRAN/" title="STM32CubeMX SDRAN: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX SDRAN" style="background-color: #F9EBEA;">STM32CubeMX SDRAN
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-TFT-LCD/" title="STM32CubeMX TFT-LCD: 2">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX TFT-LCD" style="background-color: #F8F9F9;">STM32CubeMX TFT-LCD
                        <span class="tag-length">2</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-DS18B20/" title="STM32CubeMX DS18B20: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX DS18B20" style="background-color: #D7BDE2;">STM32CubeMX DS18B20
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-SRAM/" title="STM32CubeMX SRAM: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX SRAM" style="background-color: #F9E79F;">STM32CubeMX SRAM
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/STM32CubeMX-W5500/" title="STM32CubeMX W5500: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="STM32CubeMX W5500" style="background-color: #D7BDE2;">STM32CubeMX W5500
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
                
                <a href="/tags/CRC%E6%A0%A1%E9%AA%8C%E7%AE%97%E6%B3%95/" title="CRC校验算法: 1">
                    <span class="chip center-align waves-effect waves-light
                             chip-default "
                            data-tagname="CRC校验算法" style="background-color: #FFF;">CRC校验算法
                        <span class="tag-length">1</span>
                    </span>
                </a>
                
            </div>
        </div>
    </div>
</div>

    

    <article id="articles" class="container articles">
        <div class="row tags-posts">
            
            
            <div class="article tag-post col s12 m6 l4" data-tags="STM32CubeMX DAC DAC输出" data-aos="fade-up">
                <div class="card">
                    <a href="/posts/2707806886/">
                        <div class="card-image tag-image">
                            
                            
                            <img src="/medias/featureimages/13.jpg" class="responsive-img" alt="STM32CubeMX_20 | 使用DAC输出任意指定电压值">
                            
                            <span class="card-title">STM32CubeMX_20 | 使用DAC输出任意指定电压值</span>
                        </div>
                    </a>
                    <div class="card-content article-content">
                        <div class="publish-info">
                            <span class="publish-date">
                                <i class="far fa-clock fa-fw icon-date"></i>2019-08-10
                            </span>
                            <span class="publish-author">
                                
                                <i class="fas fa-bookmark fa-fw icon-category"></i>
                                
                                <a href="/categories/STM32CubeMX/" class="post-category">
                                STM32CubeMX
                                </a>
                                
                                
                            </span>
                        </div>
                    </div>
                </div>
            </div>
            
        </div>
    </article>
</main>




    <footer class="page-footer bg-color">
    
    <div class="container row center-align" style="margin-bottom: 15px !important;">
        <div class="col s12 m8 l8 copy-right">
            Copyright&nbsp;&copy;
            
                <span id="year">2016-2021</span>
            
            <span id="year">2016</span>
            <a href="/about" target="_blank">Mculover666</a>
            |&nbsp;Powered by&nbsp;<a href="https://hexo.io/" target="_blank">Hexo</a>
            |&nbsp;Theme&nbsp;<a href="https://github.com/blinkfox/hexo-theme-matery" target="_blank">Matery</a>
            <br>
            
            &nbsp;<i class="fas fa-chart-area"></i>&nbsp;站点总字数:&nbsp;<span
                class="white-color">118.4k</span>&nbsp;字
            
            
            
            
            
            
            <span id="busuanzi_container_site_pv">
                |&nbsp;<i class="far fa-eye"></i>&nbsp;总访问量:&nbsp;<span id="busuanzi_value_site_pv"
                    class="white-color"></span>&nbsp;次
            </span>
            
            
            <span id="busuanzi_container_site_uv">
                |&nbsp;<i class="fas fa-users"></i>&nbsp;总访问人数:&nbsp;<span id="busuanzi_value_site_uv"
                    class="white-color"></span>&nbsp;人
            </span>
            
            <br>
            
            <span id="sitetime">载入运行时间...</span>
            <script>
                function siteTime() {
                    var seconds = 1000;
                    var minutes = seconds * 60;
                    var hours = minutes * 60;
                    var days = hours * 24;
                    var years = days * 365;
                    var today = new Date();
                    var startYear = "2016";
                    var startMonth = "8";
                    var startDate = "28";
                    var startHour = "0";
                    var startMinute = "0";
                    var startSecond = "0";
                    var todayYear = today.getFullYear();
                    var todayMonth = today.getMonth() + 1;
                    var todayDate = today.getDate();
                    var todayHour = today.getHours();
                    var todayMinute = today.getMinutes();
                    var todaySecond = today.getSeconds();
                    var t1 = Date.UTC(startYear, startMonth, startDate, startHour, startMinute, startSecond);
                    var t2 = Date.UTC(todayYear, todayMonth, todayDate, todayHour, todayMinute, todaySecond);
                    var diff = t2 - t1;
                    var diffYears = Math.floor(diff / years);
                    var diffDays = Math.floor((diff / days) - diffYears * 365);
                    var diffHours = Math.floor((diff - (diffYears * 365 + diffDays) * days) / hours);
                    var diffMinutes = Math.floor((diff - (diffYears * 365 + diffDays) * days - diffHours * hours) /
                        minutes);
                    var diffSeconds = Math.floor((diff - (diffYears * 365 + diffDays) * days - diffHours * hours -
                        diffMinutes * minutes) / seconds);
                    if (startYear == todayYear) {
                        document.getElementById("year").innerHTML = todayYear;
                        document.getElementById("sitetime").innerHTML = "本站已安全运行 " + diffDays + " 天 " + diffHours +
                            " 小时 " + diffMinutes + " 分钟 " + diffSeconds + " 秒";
                    } else {
                        document.getElementById("year").innerHTML = startYear + " - " + todayYear;
                        document.getElementById("sitetime").innerHTML = "本站已安全运行 " + diffYears + " 年 " + diffDays +
                            " 天 " + diffHours + " 小时 " + diffMinutes + " 分钟 " + diffSeconds + " 秒";
                    }
                }
                setInterval(siteTime, 1000);
            </script>
            
            <br>
            
            <span id="icp"><img src="/medias/icp.png" style="vertical-align: text-bottom;" />
                <a href="https://beian.miit.gov.cn" target="_blank">陇ICP备19002222号</a>
            </span>
            
        </div>
        <div class="col s12 m4 l4 social-link social-statis">
    <a href="https://github.com/Mculover666" class="tooltipped" target="_blank" data-tooltip="访问我的GitHub" data-position="top" data-delay="50">
        <i class="fab fa-github"></i>
    </a>



    <a href="mailto:mculover666@foxmail.com" class="tooltipped" target="_blank" data-tooltip="邮件联系我" data-position="top" data-delay="50">
        <i class="fas fa-envelope-open"></i>
    </a>







    <a href="tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin=2412828003" class="tooltipped" target="_blank" data-tooltip="QQ联系我: 2412828003" data-position="top" data-delay="50">
        <i class="fab fa-qq"></i>
    </a>





    <a href="https://www.zhihu.com/people/wang-shi-wei-67-38/activities" class="tooltipped" target="_blank" data-tooltip="关注我的知乎: https://www.zhihu.com/people/wang-shi-wei-67-38/activities" data-position="top" data-delay="50">
        <i class="fab fa-zhihu1">知</i>
    </a>



    <a href="/atom.xml" class="tooltipped" target="_blank" data-tooltip="RSS 订阅" data-position="top" data-delay="50">
        <i class="fas fa-rss"></i>
    </a>

</div>
    </div>
</footer>

<div class="progress-bar"></div>


    <!-- 搜索遮罩框 -->
<div id="searchModal" class="modal">
    <div class="modal-content">
        <div class="search-header">
            <span class="title"><i class="fas fa-search"></i>&nbsp;&nbsp;搜索</span>
            <input type="search" id="searchInput" name="s" placeholder="请输入搜索的关键字"
                   class="search-input">
        </div>
        <div id="searchResult"></div>
    </div>
</div>

<script type="text/javascript">
$(function () {
    var searchFunc = function (path, search_id, content_id) {
        'use strict';
        $.ajax({
            url: path,
            dataType: "xml",
            success: function (xmlResponse) {
                // get the contents from search data
                var datas = $("entry", xmlResponse).map(function () {
                    return {
                        title: $("title", this).text(),
                        content: $("content", this).text(),
                        url: $("url", this).text()
                    };
                }).get();
                var $input = document.getElementById(search_id);
                var $resultContent = document.getElementById(content_id);
                $input.addEventListener('input', function () {
                    var str = '<ul class=\"search-result-list\">';
                    var keywords = this.value.trim().toLowerCase().split(/[\s\-]+/);
                    $resultContent.innerHTML = "";
                    if (this.value.trim().length <= 0) {
                        return;
                    }
                    // perform local searching
                    datas.forEach(function (data) {
                        var isMatch = true;
                        var data_title = data.title.trim().toLowerCase();
                        var data_content = data.content.trim().replace(/<[^>]+>/g, "").toLowerCase();
                        var data_url = data.url;
                        data_url = data_url.indexOf('/') === 0 ? data.url : '/' + data_url;
                        var index_title = -1;
                        var index_content = -1;
                        var first_occur = -1;
                        // only match artiles with not empty titles and contents
                        if (data_title !== '' && data_content !== '') {
                            keywords.forEach(function (keyword, i) {
                                index_title = data_title.indexOf(keyword);
                                index_content = data_content.indexOf(keyword);
                                if (index_title < 0 && index_content < 0) {
                                    isMatch = false;
                                } else {
                                    if (index_content < 0) {
                                        index_content = 0;
                                    }
                                    if (i === 0) {
                                        first_occur = index_content;
                                    }
                                }
                            });
                        }
                        // show search results
                        if (isMatch) {
                            str += "<li><a href='" + data_url + "' class='search-result-title'>" + data_title + "</a>";
                            var content = data.content.trim().replace(/<[^>]+>/g, "");
                            if (first_occur >= 0) {
                                // cut out 100 characters
                                var start = first_occur - 20;
                                var end = first_occur + 80;
                                if (start < 0) {
                                    start = 0;
                                }
                                if (start === 0) {
                                    end = 100;
                                }
                                if (end > content.length) {
                                    end = content.length;
                                }
                                var match_content = content.substr(start, end);
                                // highlight all keywords
                                keywords.forEach(function (keyword) {
                                    var regS = new RegExp(keyword, "gi");
                                    match_content = match_content.replace(regS, "<em class=\"search-keyword\">" + keyword + "</em>");
                                });

                                str += "<p class=\"search-result\">" + match_content + "...</p>"
                            }
                            str += "</li>";
                        }
                    });
                    str += "</ul>";
                    $resultContent.innerHTML = str;
                });
            }
        });
    };

    searchFunc('/search.xml', 'searchInput', 'searchResult');
});
</script>

    <!-- 回到顶部按钮 -->
<div id="backTop" class="top-scroll">
    <a class="btn-floating btn-large waves-effect waves-light" href="#!">
        <i class="fas fa-arrow-up"></i>
    </a>
</div>


    <script src="/libs/materialize/materialize.min.js"></script>
    <script src="/libs/masonry/masonry.pkgd.min.js"></script>
    <script src="/libs/aos/aos.js"></script>
    <script src="/libs/scrollprogress/scrollProgress.min.js"></script>
    <script src="/libs/lightGallery/js/lightgallery-all.min.js"></script>
    <script src="/js/matery.js"></script>

    <!-- Baidu Analytics -->

<script>
    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?6e1efa0988723a1db6356535db2ae6bd";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>

    <!-- Baidu Push -->

<script>
    (function () {
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        } else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
</script>

    
    <script src="/libs/others/clicklove.js" async="async"></script>
    
    
    <script async src="/libs/others/busuanzi.pure.mini.js"></script>
    

    

    

    <!--腾讯兔小巢-->
    
    

    

    

    
    <script src="/libs/instantpage/instantpage.js" type="module"></script>
    

</body>

</html>
